#!/bin/csh 
#.................................................................................................

setenv NCARG_ROOT  /Users/zhan524/tools/ncl_ncarg-6.0.0.MacOS_10.6_64bit_nodap_gcc421 

setenv makeplot "T" 
setenv plotform "pdf" 
setenv plotview "png" 


if ($makeplot == "T") then 

###  plotfmt = "$plotform"
###  shortname = "dcs125" 
###
###  ca = "PN0004B"
###  cb = "PN0004O"
###
###  na = "BN dcs400" 
###  nb = "BN dcs125" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 


cat > load_setup.ncl << EOF

  plotfmt = "$plotform"
  shortname = "CAM5040_dcs_250_old250" 

  na = "dcs 250 old"
  nb = "dcs 250"

  ca = "PN0004N" 
  cb = "PE0010" 

  basepa = "/Users/zhan524/work/SPAR/bluefire/"
  basepb = "/Volumes/scratch/SPAR/" 

  ma = ".cam2.h0.0001-0005.ANN.nc" 
  mb = ".cam2.h0.0001-0005.ANN.nc" 

EOF

foreach exe (*.ncl)
   ncl $exe
end



cat > load_setup.ncl << EOF

  plotfmt = "$plotform"
  shortname = "CAM5040_dcs_175_old250" 

  na = "dcs 250 old"
  nb = "dcs 175"

  ca = "PN0004N"
  cb = "PE0009" 

  basepa = "/Users/zhan524/work/SPAR/bluefire/"
  basepb = "/Volumes/scratch/SPAR/" 

  ma = ".cam2.h0.0001-0005.ANN.nc" 
  mb = ".cam2.h0.0001-0005.ANN.nc" 

EOF

foreach exe (*.ncl)
   ncl $exe
end


###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM5040_dcs_175_250" 
###
###  na = "dcs 250"
###  nb = "dcs 175"
###
###  ca = "PE0010" 
###  cb = "PE0009" 
###
###  basepa = "/Volumes/scratch/SPAR/" 
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###foreach exe (*.ncl)
###   ncl $exe
###end

####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM51_LP_presc_lowsu_PD_aeroclim" 
###
###  na = "LP presc PD"
###  nb = "LP presc PD aeroclim"
###
###  ca = "X0004" 
###  cb = "X0004A" 
###
###  basepa = "/Volumes/scratch/SPAR/" 
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0002-0004.ANN.nc" 
###  mb = ".cam2.h0.0003-0007.ANN.nc" 
###
###EOF
###
###
###ncl plot_RFP_map.ncl 
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM51_BN_lowsu_preexist_PD-PI" 
###
###  na = "PI"
###  nb = "PD"
###
###  ca = "X0003I" 
###  cb = "X0003" 
###
###  basepa = "/Volumes/scratch/SPAR/"
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0002-0006.ANN.nc" 
###  mb = ".cam2.h0.0002-0006.ANN.nc" 
###
###EOF
###
###
###ncl plot_RFP_map.ncl 
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM51_BN_presc_lowsu" 
###
###  na = "BN presc PI"
###  nb = "BN presc PD"
###
###  ca = "X0007" 
###  cb = "X0006" 
###
###  basepa = "/Volumes/scratch/SPAR/"
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0002-0004.ANN.nc" 
###  mb = ".cam2.h0.0002-0004.ANN.nc" 
###
###EOF
###
###
###ncl plot_RFP_map.ncl 
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM51_BN_lowsu_preexist" 
###
###  nb = "test"
###  na = "ctrl"
###
###  ca = "X0002" 
###  cb = "X0003" 
###
###  basepa = "/Volumes/scratch/SPAR/"
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0002-0006.ANN.nc" 
###  mb = ".cam2.h0.0002-0006.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM51_LP_presc_lowsu_PD-PI" 
###
###  na = "LP presc PI"
###  nb = "LP presc PD"
###
###  ca = "X0005" 
###  cb = "X0004" 
###
###  basepa = "/Volumes/scratch/SPAR/" 
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0002-0004.ANN.nc" 
###  mb = ".cam2.h0.0002-0004.ANN.nc" 
###
###EOF
###
###
###ncl plot_RFP_map.ncl 
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM51_LP_presc_lowsu_y3" 
###
###  na = "LP presc PI"
###  nb = "LP presc PD"
###
###  ca = "X0005" 
###  cb = "X0004" 
###
###  basepa = "/Volumes/scratch/SPAR/" 
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0004.ANN.nc" 
###  mb = ".cam2.h0.0004.ANN.nc" 
###
###EOF
###
###
###ncl plot_RFP_map.ncl 
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "CAM51_BN_LP" 
###
###  nb = "test"
###  na = "ctrl"
###
###  ca = "E0002" 
###  cb = "E0003" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0002-0006.ANN.nc" 
###  mb = ".cam2.h0.0002-0006.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "preexist-ctrl_LP" 
###
###  nb = "test"
###  na = "ctrl"
###
###  cb = "E0004" 
###  ca = "PN0001B" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Volumes/scratch/SPAR/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0002-0006.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "OFFL56-OFFL56" 
###
###  ca = "OFFLINE_E01"
###  cb = "OFFLINE_E01"
###
###  na = "ON_L30" 
###  nb = "ON_L30" 
### ;nb = "OFF_L56" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "BNHet-LPHet" 
###
###  ca = "SP0002"
###  cb = "SP0005"
###
###  na = "LPHet" 
###  nb = "BNHet" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "BNHom-LPHom" 
###
###  ca = "SP0003"
###  cb = "SP0006"
###
###  na = "LPHom" 
###  nb = "BNHom" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "BNHet-BN" 
###
###  ca = "SP0004"
###  cb = "SP0005"
###
###  na = "BN" 
###  nb = "BNHet" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "LPHet-LP" 
###
###  ca = "SP0001"
###  cb = "SP0002"
###
###  na = "LP" 
###  nb = "LPHet" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "LPHom-LP" 
###
###  ca = "SP0001"
###  cb = "SP0003"
###
###  na = "LP" 
###  nb = "LPHom" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "BNHom-BN" 
###
###  ca = "SP0004"
###  cb = "SP0006"
###
###  na = "BN" 
###  nb = "BNHom" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "prescall-presc_aeroice_PD" 
###
###  ca = "PN0100A4"
###  cb = "PN0100A7"
###
###  na = "BN presc aero f.all PD" 
###  nb = "BN presc aero f.ice PD" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "progn-presc_aeroice_PD" 
###
###  ca = "PN0004B"
###  cb = "PN0100A7"
###
###  na = "BN CTRL" 
###  nb = "BN presc aero f.ice PD" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "presc_ice_PD-PI" 
###
###  ca = "PN0100A7"
###  cb = "PN0100A6"
###
###  na = "BN presc aero f.ice PI" 
###  nb = "BN presc aero f.ice PD" 
###  na = "PI" ;;BN presc aero f.ice PI" 
###  nb = "PD" ;;"BN presc aero f.ice PD" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###...............................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "homnohetm37C" 
###
###  ca = "PN0006B"
###  cb = "PN0006E"
###
###  na = "BN HOM" 
###  nb = "BN HOM nohet-37-0C" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "dcs125" 
###
###  ca = "PN0004B"
###  cb = "PN0004O"
###
###  na = "BN dcs400" 
###  nb = "BN dcs125" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "dcs250" 
###
###  ca = "PN0004B"
###  cb = "PN0004N"
###
###  na = "BN dcs400" 
###  nb = "BN dcs250" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "sedsurf" 
###
###  ca = "PN0004B"
###  cb = "PN0004K"
###
###  na = "BN" 
###  nb = "BN sedsurf" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "cnt" 
###
###  ca = "PN0004B"
###  cb = "PN0004R"
###
###  na = "Philips (2008)" 
###  nb = "BN_CNT" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "p2007" 
###
###  ca = "PN0004B"
###  cb = "PN0004Q"
###
###  na = "BN" 
###  nb = "BN P2007" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "m1992" 
###
###  ca = "PN0004B"
###  cb = "PN0004P"
###
###  na = "BN" 
###  nb = "BN M1992" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "v40" 
###
###  ca = "PN0004G"
###  cb = "PN0004B"
###
###  na = "LP v40" 
###  nb = "LP" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "D5E-2" 
###
###  ca = "PN0004B"
###  cb = "PN0004F"
###
###  na = "BN" 
###  nb = "BN D=0.05" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "D5E-1" 
###
###  ca = "PN0004B"
###  cb = "PN0004D"
###
###  na = "BN" 
###  nb = "BN D=0.5" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "D6E-3" 
###
###  ca = "PN0004B"
###  cb = "PN0004C"
###
###  na = "BN" 
###  nb = "BN D=0.006" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "nomix" 
###
###  ca = "PN0004B"
###  cb = "PN0004J"
###
###  na = "BN" 
###  nb = "BN NOMIX" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "m10" 
###
###  ca = "PN0004R"
###  cb = "PN0004AA"
###
###  na = "CNT max 5%" 
###  nb = "CNT max 10%" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl) 
###   ncl $exe 
###end
###
###.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "m50" 
###
###  ca = "PN0004R"
###  cb = "PN0004AB"
###  
###  na = "CNT max 5%" 
###  nb = "CNT max 50%" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "m100" 
###
###  ca = "PN0004R"
###  cb = "PN0004AC"
###  
###  na = "CNT max 5%" 
###  nb = "CNT max 100%" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "BN-LP" 
###
###  ca = "PN0001B"
###  cb = "PN0004B"
###  
###  na = "LP" 
###  nb = "BN" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "BNHET-LPHET" 
###
###  ca = "PN0002B"
###  cb = "PN0005B"
###  
###  na = "LPHET" 
###  nb = "BNHET" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "BNHOM-LPHOM" 
###
###  ca = "PN0003B"
###  cb = "PN0006B"
###  
###  na = "LPHOM" 
###  nb = "BNHOM" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###
###foreach exe (*.ncl)
###   ncl $exe
###end
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "2xso4-ctrl" 
###
###  ca = "PN0004B"
###  cb = "PE0003"
###  
###  na = "ctrl" 
###  nb = "2xso4" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###foreach exe (*.ncl)
###   ncl $exe
###end
###
###
####.................................................................................................
###
###cat > load_setup.ncl << EOF
###
###  plotfmt = "$plotform"
###  shortname = "10xdu-ctrl" 
###
###  ca = "PN0004B"
###  cb = "PE0002"
###  
###  na = "ctrl" 
###  nb = "10xdu" 
###
###  basepa = "/Users/zhan524/work/SPAR/bluefire/" 
###  basepb = "/Users/zhan524/work/SPAR/bluefire/" 
###
###  ma = ".cam2.h0.0001-0005.ANN.nc" 
###  mb = ".cam2.h0.0001-0005.ANN.nc" 
###
###EOF
###
###foreach exe (*.ncl)
###   ncl $exe
###end

endif

#.................................................................................................
# convert to other format 
#.................................................................................................
 
if($plotform == "eps") then
if($plotview == "png") then
   foreach ff (*.eps)
      echo $ff.png
      convert -density 200 $ff $ff.png
   end
endif
endif

mv -f *.png plot_png 
mv -f *.eps plot_eps 
#mv -f *.pdf plot_pdf



